package com.shuaigequtan.nacos.payment.service;

import com.shuaigequtan.entity.payment.Payment;
import com.shuaigequtan.nacos.payment.dao.PaymentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentService {
    @Autowired
    private PaymentMapper paymentMapper;


    public void insert(Payment payment){
        paymentMapper.insert(payment);
    }

    public Payment getById(Long id){
        return paymentMapper.selectById(id);
    }
}
